package com.springStudy.beans.aware.demo1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AwareDemo1MainTest {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AwareConfig.class);

        BeanNameAwareDemo awareService = context.getBean(BeanNameAwareDemo.class);
        System.out.println(awareService.beanName);
    }
}
